﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admincp/MasterPageEmpty.master"
    AutoEventWireup="true" CodeFile="phanlopgv.aspx.cs" Inherits="admincp_phanlopgv" %>

<%@ Register Src="wucSideBar.ascx" TagName="wucSideBar" TagPrefix="uc1" %>
<%@ Register Src="wucNavTop.ascx" TagName="wucNavTop" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTopBar" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphSideBar" runat="Server">
    <uc1:wucSideBar ID="wucSideBar1" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphNavTop" runat="Server">
    <uc2:wucNavTop ID="wucNavTop1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphContent" runat="Server">
    <div class="flat_area grid_16">
        <div class="block">
            <%--<button id="btnThemMoiGiaoVien" onserverclick="ThemMoiGiaoVien" runat="server" class="button_colour round_all">
                <img height="24" width="24" alt="Thêm giáo viên" src="images/icon_add.png"><span>Thêm giáo viên</span></button>--%>
            <h2>
                Phân lớp và môn dạy cho giáo viên</h2>
            <table style="width: 100%;">
                <tr>
                    <td width="50%">
                        <label>
                            Giáo viên</label>
                        <div class="input_group">
                            <asp:DropDownList ID="ddlGiaoVien" title="Chọn giáo viên" runat="server">
                            </asp:DropDownList>
                        </div>
                    </td>
                    <td>
                        <label>
                            Lớp dạy</label>
                        <div class="input_group">
                            <asp:DropDownList ID="ddlLopHoc" title="Chọn giáo viên" runat="server">
                            </asp:DropDownList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="50%">
                        <br />
                        <label>
                            Môn dạy</label>
                        <div class="input_group">
                            <asp:DropDownList ID="ddlMonHoc" title="Chọn giáo viên" runat="server">
                            </asp:DropDownList>
                        </div>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td width="50%">
                        <br />
                        <button id="btnThemPhanLopDayGiaoVien" onserverclick="ThemPhanLopDayGiaoVien" runat="server"
                            class="button_colour round_all">
                            <img height="24" width="24" alt="Thêm phân lớp cho giáo viên" src="images/icon_add.png"><span>Thêm
                                phân lớp cho giáo viên</span></button>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="box grid_16 round_all">
        <asp:ListView ID="lvPhanLopDayChoGiaoVien" runat="server">
            <LayoutTemplate>
                <table class="display table">
                    <thead>
                        <tr>
                            <th style="width: 5%">
                                Mã giáo viên
                            </th>
                            <th style="width: 60%">
                                Tên giáo viên
                            </th>
                            <th style="width: 6%">
                                Mã lớp
                            </th>
                            <th style="width: 6%">
                                Tên lớp
                            </th>
                            <th style="width: 5%" align="center">
                                Mã môn học
                            </th>
                            <th style="width: 5%" align="center">
                                Tên môn học
                            </th>
                            <th style="width: 5%" align="center">
                                Xóa
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </tbody>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td valign="middle">
                        <%# Eval("MaGiaoVien")%>
                    </td>
                    <td>
                        <%# Eval("TenGiaoVien")%>
                    </td>
                    <td align="center">
                        <%# Eval("MaLop")%>
                    </td>
                    <td align="center">
                        <%# Eval("TenLop")%>
                    </td>
                    <td align="center">
                        <%# Eval("MaMonHoc")%>
                    </td>
                    <td align="center">
                        <%# Eval("TenMonHoc")%>
                    </td>
                    <td align="center">
                        <asp:ImageButton ID="btnXoaPhanLopGiaoVien" runat="server" CssClass="help" ToolTip="Xóa phân lớp cho giáo viên"
                            ImageUrl="images/icon_delete.png" CommandName="DELETE" CommandArgument='<%# Eval("MaGiaoVien").ToString() + Eval("MaLop").ToString() + Eval("MaMonHoc").ToString() %>'
                            OnClientClick="return confirm('Bạn chắc chắn muốn xóa phân lớp dạy cho giáo viên này?')" />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cphTemplateOption" runat="Server">
</asp:Content>
